<template>
    <h3>内联事件3</h3>
    <p>Count is: {{ count }}</p>
    <button @click="addCount('Hello')">Add</button>
</template>
<script>
export default{
    data () {
        return {
            count:0,
        }
    },
    methods:{
        addCount(msg){
            this.count++;
            console.log(msg);
        }
    }
}
</script>